package com.sunzhe.train.web;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

import com.ibeetl.cms.web.query.ArticleQuery;

/**
 * view 接口
 */
@Controller("trainViewController")
public class ViewController{

    private final Log log = LogFactory.getLog(this.getClass());
    private static final String MODEL = "";

    @Autowired
	Environment env;
    
    @GetMapping(MODEL + "/about")
    public ModelAndView index() {
        ModelAndView view = new ModelAndView("/about.html") ;
        
        view.addObject("search", ArticleQuery.class.getName());
        return view;
    }
}
